package ullio.video
{
	import flash.events.MouseEvent;	
	import mx.controls.Button;	
	import ullio.events.AppEvent;
	
 	[Event( name="fullScreenClick", type="AppEvent" )]

	public class FullScreenButton extends Button
	{
		public function FullScreenButton()
		{
			super();
			addEventListener(MouseEvent.CLICK, goFullScreen);
			useHandCursor = true;
			buttonMode = true;
			mouseChildren = false;
		}
		
		private function goFullScreen(event:MouseEvent):void{
			dispatchEvent(new AppEvent("fullScreenClick"));
		}
			
	}
}